package com.topvision.mapper.user;

import com.topvision.mapper.base.BaseMapper;
import com.topvision.model.hes.HesUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<HesUser> {

    int insert(HesUser record) throws Exception;

    int insertSelective(HesUser record) throws Exception;

    HesUser getUserByJobNumber(@Param(value = "jobNumber") String jobNumber) throws Exception;
    HesUser getUserByUserName(@Param(value = "username") String username);
    HesUser Login(@Param(value = "username") String username, @Param(value = "password") String password) throws Exception;

    Map<String, Object> getPersonnelMattersStatus(@Param(value = "jobNumber") String jobNumber) throws Exception;

    int updatePasswordByJobNumber(Map<String, Object> map);

    int updateInfoByJobNumber(Map<String, Object> map);

    int changeGrant(HesUser record) throws Exception;

    List<HesUser> queryChangeGrantList(Map<String, Object> map);

    int queryChangeGrantTotal(Map<String, Object> map);

    int refuse(@Param(value = "id") String id);

    HesUser queryObjectAll(@Param(value = "id") String id);

    List<HesUser> queryNewUserList(Map<String, Object> map);

    int queryNewUserTotal(Map<String, Object> map);
}